	<load file="./Public/tpl/header.html"/>
<!-- 载入公共头部文件结束 -->
	<link href="__PUBLIC__/css/detail.css" type="text/css" rel="stylesheet" >
	<div id="map" class='position'>
		<a href="{|U('Index/index/index')}/lid/{$detail.lid}">{$detail.lname}</a><span>>></span><a href="{|U('Index/index/index')}/cid/{$detail.cid}">{$detail.cname}</a><span>>></span>{$detail.shopname}
	</div>
	<div id="content" class='position' style="height:3000px;">
		<div class='content-left'>
			<div class="goods-intro">
				<div class='goods-title'>
					<h1>{$detail.main_title}</h1>
					<h3>{$detail.sub_title}</h3>
				</div>
				<div class='deal-intro'>
					<div class='buy-intro'>
						<div class='price'>
							<div class='discount-price'>
								<span>¥</span>{$detail.price}
							</div>
							<div class='cost-price'>
								<span class='discount'>{$detail.zhekou}折</span>
								门店价¥<del>{$detail.old_price}</del>
							</div>
						</div>
						<div class='deal-buy-cart'>
							<a href="{|U('Member/Buy/index')}/gid/{$detail.gid}" class='buy'></a>
							<a href="javascript:void(0);" url="{|U:'Member/Cart/add'}/gid/{$detail.gid}" id='addCart' class='cart'></a>
						</div>
						<div class='purchased'>
							<p class='people'>
								<span>{$detail.buy}</span>人已团购
							</p>
							<p class='time'>
								{$detail.end_time}
							</p>
						</div>
						<ul class='refund-intro'>
						<list from="$detail['server']" name='v'>
							<li>
								<span class='ico'>{$v.img}</span>
								<span class='text'>{$v.name}</span>
							</li>
						</list>
						</ul>
					</div>
					<div class='image-intro'>
						<img src="{$detail.goods_img}"/>
					</div>
				</div>
				<div class='collect'>
					<a class='collect-link' href=''><i></i>收藏本单</a>
					
					<div class='share'>
						
					</div>
					
				</div>
			</div>
			<div class='detail'>
				<ul class='plot-points'>
					<li class='active'><a href="#shop-site">商家位置</a></li>
					<li><a href="#details">本单详情</a></li>
					<li><a href="#comment">消费评价</a></li>
				</ul>
				<div id="shop-site" class='shop-site'>
					<p class='site-title'>商家位置</p>
					<div class='box'>
						<div id='bMap' class='map'>
							
						</div>
						<div class='info'>
							<h3>{$detail.shopname}</h3>
							<dl>
								<dt>地址:</dt>
								<dd>{$detail.shopaddress}</dd>
							</dl>
							<dl>
								<dt>地铁:</dt>
								<dd>{$detail.metroaddress}</dd>
							</dl>
							<dl>
								<dt>电话:</dt>
								<dd>{$detail.shoptel}</dd>
							</dl>
						</div>
					</div>
				</div>
				<div id="details"  class='details'>
					{$detail.detail}
				</div>
				<div id="comment" class='comment'>
					<div class='comment-list-title'>
						<span>全部评价</span>
						<a class='order-time' href="">按时间<i></i></a>
					</div>
					<div class='comment-list'>
						<div class='list-con'>
							<div class='con-top'>
								<span class='username'>sdas</span>
								<span class='time'>评价于:<em>2013-08-04</em></span>
							</div>
							<p>
								说是香草拿铁不是很苦，结果根本不是想象中的味道！像速溶冲调！还要另加五元？有此一说吗？银座店环境一般！
							</p>
						</div>
						
					</div>
					<div class='comment-page'>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
					</div>
				</div>
			</div>
		
		</div>
		<div class='content-right'>
			<div class='recommend'>
				<h3 class='recommend-title'>
					看过本团购的用户还看了
				</h3>
				<div class='recommend-goods'>
					<a class='goods-image' href="">
						<img alt="图像加载失败.." src="http://p0.meituan.net/200.121/deal/__5738304__3391447.jpg">
					</a>
					<h4>
						<a href="">【五道口】上岛咖啡：双人下午茶套餐，美味齐分享</a>
					</h4>
					<p>
						<strong>¥39.8</strong>
						<span class='cost-price'>门店价<del>144</del></span>
						<span class='num'>
							<span>173</span>
							 人已团购
						</span>
					</p>
				</div>
			</div>
		</div>

		
		
	</div>		
<!-- 购物车JS -->
	<div class="c"></div>
	<div id="cover"></div>
	<div id="infoWindow">
		
	</div>
	<script src="__PUBLIC__/js/detail.js"> </script>
	<script>
		var cartSucc = "<div class='colse'><a href='javascript:hideInfoWindow();'></a></div>\
			<ul class='status'>\
			<li class='ico'></li>\
			<li class='msg'>\
				<h3>添加成功!</h3>\
				<p>购物车内共有<span id='total'></span>种商品</p>\
			</li>\
		</ul>\
		<div class='goBtn'>\
			<a href='javascript:hideInfoWindow();'>继续浏览</a>\
			<a href='{|U('Member/Cart/index')}'>查看购物车</a>\
		</div>";
		var collectSucc = "<div class='colse'><a href='javascript:hideInfoWindow();'></a></div>\
			<ul class='status'>\
			<li class='ico'></li>\
			<li class='msg'>\
				<h3>收藏成功!</h3>\
			</li>\
		</ul>\
		<div class='goBtn'>\
			<a href='javascript:hideInfoWindow();'>继续浏览</a>\
			<a href='{|U('Member/Index/collect')}'>查看我的收藏</a>\
		</div>";
		var userIsLogin = false;
		<if value="$userIsLogin">
			userIsLogin = true;
		</if>
	</script>

<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=AC37be9efe7459c38f04c34a964155a2"></script>
<script >
	var shopcoord = {$detail.shopcoord};
	//百度地图API
	var map = new BMap.Map('bMap');
	var point = new BMap.Point(shopcoord.lng,shopcoord.lat);
	map.centerAndZoom(point,15);
	map.enableScrollWheelZoom();
	map.addControl(new BMap.NavigationControl( {anchor: BMAP_ANCHOR_TOP_RIGHT, offset: new BMap.Size(10, 10)}));
	var marker = new BMap.Marker(point);        // 创建标注

	map.addOverlay(marker);                     // 将标注添加到地图中
	
</script>











<!-- 载入公共头部文件开始 --> 
	<load file="./Public/tpl/footer.html"/>
<!-- 载入公共头部文件结束 -->